<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>懂车帝-看车选车买车就上懂车帝</title>
    
    <link rel="icon" href="./favicon.ico" type="./favicon.ico" />

    <link rel="stylesheet" href="./css/bese.css">
    
    <style>
        body {
            background-image: url("./img/p783b37a3556e983392fdfe467a31ea88.jpg");
            background-size: 100% 100%;
            width: 100%;
            height: 640px;
        }

        .box {
            width: 340px;
            background-color: white;
            padding: 32px 40px;
            position: absolute;
            left: 35%;
            top: 25%;
        }

        .box h1 {
            font-size: 20px;
            margin-bottom: 16px;
            font-weight: 500;
        }

        .one {
            border: 0;
            font-size: 16px;
            padding-bottom: 20px;


        }

        .two {
            border: 0;
            font-size: 16px;
            margin-bottom: 16px;

        }

        .onee {
            border-bottom: 1px solid gray;
        }

        .oneee {
            border-bottom: 1px solid gray;
            /* padding-bottom: 22px; */
        }

        .cc {
            margin-top: 23px;
            border: 0;
            background-color: yellow;
            width: 100%;
            height: 52px;
        }

        .jj {
            padding-top: 14px;
        }

        .clcl {
            position: relative;
            height: 20px;
            padding: 2px 2px;
            color: white;
            display: none;
            position: absolute;
            right: 80px;
            float: right;
            top: 89px;
            font-size: 12px;
            background-color: #444
        }
        .sj{

            position: absolute;
            width: 0;
            height: 0;
            left: 50%;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-top: 10px solid #444;
        }
    </style>
</head>

<body>
    <div class="box">
        <h1>重置账号密码</h1>
        <div class="box-xx">
            <div class="onee"><input type="text" placeholder="账号/手机/邮箱" class="one"></div>
            <div class="oneee"><input type="text" placeholder="验证码" class="two"><img src="./img/1.gif" class="jj">
                <span class="clcl">看不清楚换一张 <div class="sj"></div></span>
            </div>
            <button class="cc">立即重置</button>
        </div>
    </div>
    <script>
        var jj = document.querySelector(".jj");
        var clcl = document.querySelector(".clcl");
        var occ=document.querySelector('.cc')
        var oDiv = document.querySelector('.oneee')
        
        var index=0
        var otu=['./img/1.gif','./img/2.gif','./img/3.gif','./img/4.gif','./img/5.gif'];

        jj.onmouseover = function () {
            clcl.style.display = "block";
        }
        jj.onmouseout = function () {
            clcl.style.display = "none";
        }
        occ.onclick=function(){
            location.href = "./dl.html"
        }
    //     function tu(){
    //     for(var i=0;i<occ.length;i++){
    //        var oImg = document.createElement('img')
    //        oImg.innerHTML=`<img src=${otu[i]}>`;
    //        oDiv.appendChild('oImg')
    //     }
    //     index++
    // }
    jj.onclick =function(){
        index++; 
        if(index>=otu.length){
            index=0
        }
        jj.src=otu[index];
       
    }
    </script>

</body>

</html>